<?php $this->load->view('home/layout/header') ?>
<form action="<?php echo site_url('home/passenger/addPost'); ?>" method="post" id="form-passenger" >
    <header class="my-head flex">
		<div class="my-return">
			<a href="<?php echo site_url('home/passenger/passengerList') ?>">
				<i class="iconfont icon-zuojiantou"></i>
			</a>
		</div>
		<div class="add-name">
			新增常用联系人
		</div>
		<div class="add-submit">
			<button type="submit">保存</button>
		</div>
	</header>
	<section class="add-text widthMax">
		<ul>
			<li>
				<h6>真实姓名</h6>
				<div class="add-input flex-1">
					<input type="text" name="visitor_name" placeholder="确保与证件保持一致" >
				</div>
			</li>
			<li class="add-choice">
                		<input type="hidden" name="sex" value="1">
				<a href="javascript:;" class="flex" data-am-modal="{target: '#passenger-sex'}">
					<p class="flex-1">性别</p>
					<div class="my-photo flex">
						<div class="photo-text flex-1" id="sex">
							男
						</div>
						<i class="iconfont icon-youjiantou"></i>
					</div>
				</a>
			</li>
			<li class="add-choice">
                <input type="hidden" name="type" value="1">
				<a href="javascript:;" class="flex" data-am-modal="{target: '#passenger-type'}">
					<p class="flex-1">证件类型</p>
					<div class="my-photo flex">
						<div class="photo-text flex-1" id="pin-type">
							身份证
						</div>
						<i class="iconfont icon-youjiantou"></i>
					</div>
				</a>
			</li>
			<li>
				<h6>身份证号</h6>
				<div class="add-input flex-1">
					<input type="text" name="pin" placeholder="证件号码" >
				</div>
			</li>
			<li>
				<h6>手机号码</h6>
				<div class="add-input flex-1">
					<input type="tel" name="mobile_phone" placeholder="11位手机号" >
				</div>
			</li>
		</ul>
	</section>
</form>

<div class="sex-alert am-modal-actions" id="passenger-sex">
	<div class="sex-ul">
		<ul>
			<li data-type="1">男</li>
			<li data-type="2">女</li>
		</ul>
	</div>
	<div class="sex-close">
		 <button data-am-modal-close>取消</button>
	</div>
</div>

<div class="sex-alert am-modal-actions" id="passenger-type">
	<div class="sex-ul">
		<ul>
			<li data-type="1">身份证</li>
	<!--  		<li data-type="2">护照</li>-->
	<!--  		<li data-type="3">军官证</li>-->
		</ul>
	</div>
	<div class="sex-close">
		 <button data-am-modal-close>取消</button>
	</div>
</div>

<?php $this->load->view('home/layout/footer'); ?>